package com.ktgj.other.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.other.mapper.RcTerminalMapper;
import com.ktgj.other.domain.RcTerminal;
import com.ktgj.other.service.IRcTerminalService;

/**
 * 专车航站楼Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-27
 */
@Service
public class RcTerminalServiceImpl implements IRcTerminalService 
{
    @Autowired
    private RcTerminalMapper rcTerminalMapper;

    /**
     * 查询专车航站楼
     * 
     * @param terminalid 专车航站楼ID
     * @return 专车航站楼
     */
    @Override
    public RcTerminal selectRcTerminalById(Long terminalid)
    {
        return rcTerminalMapper.selectRcTerminalById(terminalid);
    }

    /**
     * 查询专车航站楼列表
     * 
     * @param rcTerminal 专车航站楼
     * @return 专车航站楼
     */
    @Override
    public List<RcTerminal> selectRcTerminalList(RcTerminal rcTerminal)
    {
        return rcTerminalMapper.selectRcTerminalList(rcTerminal);
    }

    /**
     * 新增专车航站楼
     * 
     * @param rcTerminal 专车航站楼
     * @return 结果
     */
    @Override
    public int insertRcTerminal(RcTerminal rcTerminal)
    {
        return rcTerminalMapper.insertRcTerminal(rcTerminal);
    }

    /**
     * 修改专车航站楼
     * 
     * @param rcTerminal 专车航站楼
     * @return 结果
     */
    @Override
    public int updateRcTerminal(RcTerminal rcTerminal)
    {
        return rcTerminalMapper.updateRcTerminal(rcTerminal);
    }

    /**
     * 批量删除专车航站楼
     * 
     * @param terminalids 需要删除的专车航站楼ID
     * @return 结果
     */
    @Override
    public int deleteRcTerminalByIds(Long[] terminalids)
    {
        return rcTerminalMapper.deleteRcTerminalByIds(terminalids);
    }

    /**
     * 删除专车航站楼信息
     * 
     * @param terminalid 专车航站楼ID
     * @return 结果
     */
    @Override
    public int deleteRcTerminalById(Long terminalid)
    {
        return rcTerminalMapper.deleteRcTerminalById(terminalid);
    }
}
